﻿using System;
using zhangmenren.Models.Enums;

namespace zhangmenren.Models
{
	/// <summary>
	/// 作品表
	/// </summary>
	public class WorksEntity
	{
		/// <summary>
		/// 作品标识
		/// </summary>
		/// <value>The identifier.</value>
		public int Id { get; set; }

		/// <summary>
		/// 作者标识为掌门号
		/// </summary>
		/// <value>The author identifier.</value>
		public int AuthorId { get; set; }

        public string Author { get; set; }

        public string UserName { get; set; }

		/// <summary>
		/// 作品类型 0：文档 1：视频 2炫酷视频
		/// </summary>
		/// <value>The type.</value>
		public WorkType Type { get; set; }

		/// <summary>
		/// 作品状  是否显示
		/// </summary>
		/// <value>The state.</value>
		public bool State { get; set; }

		/// <summary>
		/// 作品标题
		/// </summary>
		/// <value>The title.</value>
		public string Title { get; set; }

		/// <summary>
		/// 作品价格
		/// </summary>
		/// <value>The price.</value>
		public decimal Price { get; set; }

		/// <summary>
		/// 作品描述
		/// </summary>
		/// <value>The describe.</value>
		public string Describe { get; set; }

		/// <summary>
		/// 作品封面图片
		/// </summary>
		/// <value>The cover image.</value>
		public string CoverImg { get; set; }

		/// <summary>
		/// 作品分(。net java)   是否和作品分类表关联   如关联这里保存id即可
		/// </summary>
		/// <value>The class.</value>
		public int ClassId { get; set; }

        public int Sort { get; set; }

        /// <summary>
        /// 是否推荐
        /// </summary>
        /// <value><c>true</c> if is recommend; otherwise, <c>false</c>.</value>
        public bool IsRecommend { get; set; }

		/// <summary>
		/// 作品添加时间
		/// </summary>
		/// <value>The add dt.</value>
		public DateTime? AddDT { get; set; }


	}
}
